package com.dingreading.cloud.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 激活码分发记录表 实体类。
 *
 * @author EDY
 * @since 2025-10-29
 */
@Data
@Table("cmactivation_code_log")
public class CmactivationCodeLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 标识uid
     */
    private String uid;

    /**
     * 激活码类型uid
     */
    private String activationTypeUid;

    /**
     * 激活码类型名称
     */
    private String activationTypeName;

    /**
     * 激活码数量
     */
    private Integer activationNum;

    /**
     * 公司UID
     */
    private String corpUid;

    /**
     * 门店UID
     */
    private String storeUid;

    /**
     * 门店名称
     */
    private String storeName;

    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    /**
     * 添加人用户ID
     */
    private String addStaffUid;

    /**
     * 添加人姓名
     */
    private String addStaffName;

}
